package com.xinxin.blockchain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ys
 * @date 2021/5/20
 */
@ApiModel("短信验证码登陆")
@Data
public class MobileLoginDTO implements Serializable {

    private static final long serialVersionUID = 5980331027409259521L;

    @ApiModelProperty(value = "国家号码", required = true)
    @NotNull
    private Integer countryCode;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank
    private String mobile;

    @ApiModelProperty(value = "短信验证码", required = true)
    @NotBlank
    private String smsCode;
}
